<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>TODO supply a title</title>
    </h:head>
    <h:body>
        <h:form style="text-align:right">
            <h:message for="email" style="color: red" showDetail="false"/> 
            <h:outputText value="Login: *" />           
            <h:inputText id="email" value="#{userManagedBean.user.email}" required="true" 
                         requiredMessage="Please enter your login"/>
            <br/>
            <h:message for="password" style="color: red" showDetail="false"/> 
            <h:outputText value="Password: *" />  
            <h:inputSecret id="password" value="#{userManagedBean.user.password}" required="true" 
                           requiredMessage="Please enter your password"/>
            <br/>
            <h:commandButton value="Login" action="#{userManagedBean.doLogin()}"/>
            or 
            <h:link outcome="/pages/user/register.xhtml?faces-redirect=true" value="Register"/>
        </h:form>
    </h:body>
</html>
